//package org.zxp.encryption;
//
//import java.util.Base64;
//
///**
// * @program: effectiveJava
// * @description:
// * @author: X-Pacific zhang
// * @create: 2020-06-04 08:40
// **/
//public class RSAEncryption {
//    public static void main(String[] args) throws Exception {
////公钥
//        String publicKey = "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJL0JkqsUoK6kt3JyogsgqNp9VDGDp+t3ZAGMbVoMPdHNT2nfiIVh9ZMNHF7g2XiAa8O8AQWyh2PjMR0NiUSVQMCAwEAAQ==";
////私钥
//        String parivateKey = "MIIBVQIBADANBgkqhkiG9w0BAQEFAASCAT8wggE7AgEAAkEAkvQmSqxSgrqS3cnKiCyCo2n1UMYOn63dkAYxtWgw90c1Pad+IhWH1kw0cXuDZeIBrw7wBBbKHY+MxHQ2JRJVAwIDAQABAkB3TKXZcVP6tSSN0UgOjLPxng99Z4xvrWJ1jdHFB7TYyUDcnOtE6GkeeMGxtszYtuZ0m5rN9r8eRvIdVUciXbQhAiEA7WGcLd+cvHHA8xNFrbT78Aq4iYm0TVTS6m05ZEOS328CIQCeetcFV8Kdb+P2Y+yWvMtbyFGhROQIFizvxM3S3TiZrQIhAJLrYPB7f9SaSyOm/+89Htk4qXJmyjM6lrgFFgpaUGL9AiB+pkCr/mSDGOYfA+AQ3rPNl5rUvI9XfxFOVAMAntYayQIhAO0hrnwtng6Ubs+58BN69vAl+sd/xugf0jsHcNgZppAb";
//        String password = "123456";
////公钥加密
//        String pass = EncryptionUtils.RSA.encrypt(password, publicKey);
//        System.out.println("RSA加密："+pass);
////私钥解密
//        String pass2 =  EncryptionUtils.RSA.decrypt(pass, EncryptionUtils.RSA.getPrivateKey(parivateKey));
//        System.out.println("RSA解密："+pass2);
//    }
//}
